package com.qdxwx.manage.controller.auth;

import com.qdxwx.manage.support.SessionUtils;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/logout")
public class LogoutController {

    @RequestMapping("")
    public String logout(HttpServletRequest request) {
        SessionUtils.clearSession(request);
        return "auth/login";
    }
}
